/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.excel;

import com.bedatadriven.mso.core.MsoEncoding;
import com.bedatadriven.mso.core.MsoScreenSize;
import com.bedatadriven.mso.core.MsoTargetBrowser;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Excel.WebOptions*/
public class WebOptions extends JavaScriptObject {

	protected WebOptions() { }
	public native final ExcelApplication getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final boolean getRelyOnCSS()/*-{
		return this.RelyOnCSS;
	}-*/;

	public native final void setRelyOnCSS(boolean value)/*-{
		this.RelyOnCSS = value;
	}-*/;

	public native final boolean getOrganizeInFolder()/*-{
		return this.OrganizeInFolder;
	}-*/;

	public native final void setOrganizeInFolder(boolean value)/*-{
		this.OrganizeInFolder = value;
	}-*/;

	public native final boolean getUseLongFileNames()/*-{
		return this.UseLongFileNames;
	}-*/;

	public native final void setUseLongFileNames(boolean value)/*-{
		this.UseLongFileNames = value;
	}-*/;

	public native final boolean getDownloadComponents()/*-{
		return this.DownloadComponents;
	}-*/;

	public native final void setDownloadComponents(boolean value)/*-{
		this.DownloadComponents = value;
	}-*/;

	public native final boolean getRelyOnVML()/*-{
		return this.RelyOnVML;
	}-*/;

	public native final void setRelyOnVML(boolean value)/*-{
		this.RelyOnVML = value;
	}-*/;

	public native final boolean getAllowPNG()/*-{
		return this.AllowPNG;
	}-*/;

	public native final void setAllowPNG(boolean value)/*-{
		this.AllowPNG = value;
	}-*/;

	protected native final int _getScreenSize()/*-{
		return this.ScreenSize;
	}-*/;

	public final MsoScreenSize getScreenSize(){
		return MsoScreenSize.valueOf(_getScreenSize());
	}
	protected native final void _setScreenSize( int value)/*-{
		this.ScreenSize = value;
	}-*/;

	public final void setScreenSize(MsoScreenSize value){
		_setScreenSize(value.getValue());
	}
	public native final int getPixelsPerInch()/*-{
		return this.PixelsPerInch;
	}-*/;

	public native final void setPixelsPerInch(int value)/*-{
		this.PixelsPerInch = value;
	}-*/;

	public native final String getLocationOfComponents()/*-{
		return this.LocationOfComponents;
	}-*/;

	public native final void setLocationOfComponents(String value)/*-{
		this.LocationOfComponents = value;
	}-*/;

	protected native final int _getEncoding()/*-{
		return this.Encoding;
	}-*/;

	public final MsoEncoding getEncoding(){
		return MsoEncoding.valueOf(_getEncoding());
	}
	protected native final void _setEncoding( int value)/*-{
		this.Encoding = value;
	}-*/;

	public final void setEncoding(MsoEncoding value){
		_setEncoding(value.getValue());
	}
	public native final String getFolderSuffix()/*-{
		return this.FolderSuffix;
	}-*/;

	public native final void useDefaultFolderSuffix()/*-{
		this.UseDefaultFolderSuffix( );
	}-*/;

	protected native final int _getTargetBrowser()/*-{
		return this.TargetBrowser;
	}-*/;

	public final MsoTargetBrowser getTargetBrowser(){
		return MsoTargetBrowser.valueOf(_getTargetBrowser());
	}
	protected native final void _setTargetBrowser( int value)/*-{
		this.TargetBrowser = value;
	}-*/;

	public final void setTargetBrowser(MsoTargetBrowser value){
		_setTargetBrowser(value.getValue());
	}
}
